import request from '/@/utils/request';

export const getPatientBaseList = () => {
  // 采用全条件查询获取所有患者基本信息
  return request({
    url: '/patient/patientBase/getByPatientBaseObject',
    method: 'post',
    data: {},
  });
}

// 分页查询患者列表信息
export const getPatientBasePage = (params?: Object) => {
  return request({
    url: '/patient/patientList/page',
    method: 'get',
    params,
  });
}

// 更新医患特别关注
export const changePatientLike = (data: Object) => {
  return request({
    url: '/patient/patientDoctor',
    method: 'put',
    data,
  });
}

// 获取患者基本信息
export const getPatientBaseInfo = (id?:string) => {
  return request({
    url: '/patient/patientBase/'+ id,
    method: 'get',
  })
}

export const getAbnormalBloodInfo = (params?: Object) => {
  return request({
    url: '/patient/patientList/abnormal_page',
    method: 'get',
    params,
  });
}

// 获取病例列表
export const getPatientCaseList = (params?: Object) => {
  return request({
    url: '/patient/patientCase/page',
    method: 'get',
    params,
  });
}